<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
    <title>设置管理员</title>
    <script type="text/javascript" src="${ctx}/static/myJs/util.js"></script>
    <script type="text/javascript" src="${ctx}/static/myJs/groupController.js"></script>
</head>

<body>
<div class="content">
    <div class="page-subcate-list">
        <div class="page-searchbox">
            <input id="name" type="text" placeholder="输入查询条件">
            <div class="pull-right">
                <button onclick="searchByName()">查询</button>
                <!--
                <button><i class="fa fa-plus" aria-hidden="true"></i> 新建</button>
                -->
            </div>
        </div>
    </div>
    <div class="page-volunteer-recruitment-grid">
        <ul>
            <c:forEach items="${data.content}" var="item">
                <c:if test="${item.role==0}">
                <li id="groupVolunteer_${item.id}">
                    <div class="volunteer-recruitment-card">
                        <div class="volunteer-info">
                            <a href="#"><img alt="" class="user-avatar" src="${item.volunteer.headUrl}"></a>
                            <div class="card-title"><a href="#">${item.volunteer.nickName}</a> <i class="fa fa-trophy gold" aria-hidden="true"></i><i class="fa fa-trophy silver" aria-hidden="true"></i><i class="fa fa-trophy bronze" aria-hidden="true"></i></div>
                        </div>
                        <div class="card-body">
                            <div class="card-users"><a href="#"><i class="fa fa-heart" aria-hidden="true"></i>${item.volunteer.acts}次公益活动，共${item.volunteer.times}分钟公益时间</a></div>
                        </div>
                        <div class="card-footer">
                            <div class="pull-right">
                                <div class="card-delete">
                                    <a href="javascript:void(0);" onclick="javascript:setAdmin('${item.id}','1');">
                                    <!--<i class="fa fa-trash" aria-hidden="true"></i>-->
                                        设置管理员
                                    </a></div>
                            </div>
                        </div>
                    </div>
                </li>
                </c:if>
            </c:forEach>
        </ul>
    </div>
</div>
</body>
</html>
